package com.xjzd.mapstruct.demo;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface StudentMapper2 {
    StudentMapper2 INSTANCE = Mappers.getMapper(StudentMapper2.class);

    // @Mappings({
    //         @Mapping(source = "name", target = "nameVo"),
    //         @Mapping(source = "age", target = "ageVo")
    // })
    StudentVO2 toStudentVO(Student student);

}
